<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>

    export default {
        name: 'App',
        components: {
            // Home: ()=> import('./view/home')
        },
        mounted() {
            // this.$router.push('/login')
            this.isClose()
        },
        methods:{
            isClose(){
                let cookie = this.$cookie;
                window.onbeforeunload = function(){
                    cookie.delete('token')
                }

            }
        }
    }
</script>

<style>
    #app {
        font-family: Avenir, Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-align: center;
        color: #2c3e50;
        margin-top: 60px;
    }
</style>
